
**************************************************************************************
*                           Replication Data for                  
*               Only for Some Women: Experimental evidence
*          on Descriptive Representation and Political Engagement
**************************************************************************************




**************************************************************************************
* Study 2            
**************************************************************************************

/*
This dofile will reproduce each table and figure used in the latest draft of our paper
*/


*"sutex":
*Terracol, Antoine. (2001). SUTEX: Stata module to LaTex code for summary statistics tables.
*Statistical Software Components, Boston College Department of Economics. https://ideas.repec.org/c/boc/bocode/s420102.html


*"coefplot":
*Jann, Ben. 2014. Plotting regression coefficients and other estimates.  Stata Journal 14: 708-737.

*** Set up ***

tab age
tab black
tab latino
tab white
tab women
tab democrat
tab independent
tab other_nopref
tab income
tab education_r

recode income 1/9=1 10/15=2 16/18=3, gen(income_recode)

recode education_r 1/2=1 3/7=2, gen(edu_recode)
recode edu_recode 8=.
label define edu_recode 1 "HS" 2 "higher than HS"
label value edu_recode edu_recode


gen pid_binary=.
replace pid_binary=1 if democrat==1
replace pid_binary=0 if republican==1
label define pid_binary 1 "Democrat" 0 "Republican"
label value pid_binary pid_binary

**************************************************************************************
* CREATING VARIABLES FOR CONGRUENCE
**************************************************************************************

* party congruence beween candidates and respondents *
ta same_party

gen same_gender=0
replace same_gender=1 if women==1 & gender==1
replace same_gender=1 if women==0 & gender==0


gen same_race=0
replace same_race=1 if black==1 & race==2
replace same_race=1 if latino==1 & race==3
replace same_race=1 if white==1 & race==1

gen same_gr=0
replace same_gr=1 if same_gender==1 & same_race==1

gen shared_gender=0
replace shared_gender=1 if same_gender==1 & same_race==0

gen shared_race=0
replace shared_race=1 if same_gender==0 & same_race==1

**************************************************************************************
* CREATING VARIABLES FOR GENDER LINKED FATE
**************************************************************************************


gen linked_all=0
replace linked_all=1 if linked_men==1 
replace linked_all=1 if linked_women==1

gen linked_degree=.
replace linked_degree=1 if linked_men==0 & linked_women==0 
replace linked_degree=1 if linked_men_howmuch==1
replace linked_degree=1 if linked_women_howmuch==1
replace linked_degree=2 if linked_men_howmuch==2
replace linked_degree=2 if linked_women_howmuch==2
replace linked_degree=3 if linked_men_howmuch==3
replace linked_degree=3 if linked_women_howmuch==3

gen wlinked_degree=linked_degree
replace wlinked_degree=. if women==0
gen mlinked_degree=linked_degree
replace mlinked_degree=. if women==1

**************************************************************************************
*Figure 5.1:Average Change with Shared Gender among Full Sample
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender, cl(v6)
est sto sg_voted_all
reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender, cl(v6)
est sto sg_contact_all
reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender, cl(v6)
est sto sg_donate_all

coefplot sg_voted_all || sg_contact_all || sg_donate_all, drop(_cons) xline(0) byopts(compact cols(3))

**************************************************************************************
*Figure 5.2:Average Change with Shared Gender and Race among Full Sample
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr, cl(v6)
est sto ss_voted_all
reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr, cl(v6)
est sto ss_contact_all
reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr, cl(v6)
est sto ss_donate_all

coefplot ss_voted_all || ss_contact_all || ss_donate_all, drop(_cons) xline(0) byopts(compact cols(3))

**************************************************************************************
*Figure 6.1:Average Change among Democratic Women
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==1, cl(v6)
est sto sgr_voted_femdem

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==1, cl(v6)
est sto sgr_contact_femdem

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==1, cl(v6)
est sto sgr_donate_femdem

coefplot sgr_voted_femdem || sgr_contact_femdem || sgr_donate_femdem, drop(_cons) xline(0) byopts(compact cols(3))

**************************************************************************************
*Figure 6.2:Average Change among Democratic Men
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==0, cl(v6)
est sto sgr_voted_maledem

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==0, cl(v6)
est sto sgr_contact_maledem

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==0, cl(v6)
est sto sgr_donate_maledem

coefplot sgr_voted_maledem || sgr_contact_maledem || sgr_donate_maledem, drop(_cons) xline(0) byopts(compact cols(3))


**************************************************************************************
*Figure 7.1:Average Change among Republican Women
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==1, cl(v6)
est sto sgr_voted_femrep

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==1, cl(v6)
est sto sgr_contact_femrep

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==1, cl(v6)
est sto sgr_donate_femrep

coefplot sgr_voted_femrep || sgr_contact_femrep || sgr_donate_femrep, drop(_cons) xline(0) byopts(compact cols(3))

**************************************************************************************
*Figure 7.2:Average Change among Republican Men
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==0, cl(v6)
est sto sgr_voted_malerep

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==0, cl(v6)
est sto sgr_contact_malerep

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==0, cl(v6)
est sto sgr_donate_malerep

coefplot sgr_voted_malerep || sgr_contact_malerep || sgr_donate_malerep, drop(_cons) xline(0) byopts(compact cols(3))

**************************************************************************************
* OTHER APPENDIX TABLES
**************************************************************************************

**************************************************************************************
*Figure B4:Gender-Linked Fate by Partisanship, Full Sample
**************************************************************************************

graph bar, over(linked_degree) by(pid_binary)

**************************************************************************************
*Figure B5:Gender-Linked Fate by Partisanship, Women
**************************************************************************************

graph bar if women==1, over(linked_degree) by(pid_binary)

**************************************************************************************
*Figure B5:Gender-Linked Fate by Partisanship, Men
**************************************************************************************

graph bar if women==0, over(linked_degree) by(pid_binary)

**************************************************************************************
*Table B1:Respondent Characteristics
**************************************************************************************

sutex age black latino white women democrat republican independent other_nopref resp_ideology income, lab nobs key(descstat) file(descstat.tex) title("Respondent Characteristics")

**************************************************************************************
*Table B2:Effect of a Descriptive Representation on Likely Engagement Battery
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender, cl(v6)


**************************************************************************************
*Table B3:Effect of a Shared Race and Gender on Likely Engagement Battery
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr, cl(v6)

**************************************************************************************
*Table B4: Avg. Change in Likely Engagement with Shared Gender X Linked Fate
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race i.same_gender##c.linked_degree, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))


**************************************************************************************
*Table B5: Avg. Change in Likely Engagement with Shared Race and Gender X Linked Fate
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender i.same_gr##c.linked_degree, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

**************************************************************************************
*Table B6: Effect of a Descriptive Representation on Likely Engagement Battery by Gender
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender if women==1, cl(v6)
reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party  same_race same_gender if women==1, cl(v6)


reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party  same_race same_gender if women==0, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party  same_race same_gender if women==0, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party  same_race same_gender if women==0, cl(v6)


**************************************************************************************
*Table B7: Effect of a Shared Race and Gender on Likely Engagement Battery by Gender
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr if women==1, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr if women==1, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr if women==1, cl(v6)


reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr if women==0, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr if women==0, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender same_gr if women==0, cl(v6)

**************************************************************************************
*Table B8: Effect of a Descriptive Representation on Likely Engagement Battery by 
*Partisanship among Women
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if democrat==1 & women==1, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if democrat==1 & women==1, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if democrat==1 & women==1, cl(v6)


reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if republican==1 & women==1, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if republican==1 & women==1, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if republican==1 & women==1, cl(v6)

**************************************************************************************
*Table B9:Effect of a Descriptive Representation on Likely Engagement Battery by 
*Partisanship among Men
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if democrat==1 & women==0, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if democrat==1 & women==0, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if democrat==1 & women==0, cl(v6)


reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if republican==1 & women==0, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if republican==1 & women==0, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if republican==1 & women==0, cl(v6)

**************************************************************************************
*Table B10: Effect of Shared Race and Gender on Likely Engagement Battery by Partisanship 
*among Women
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==1, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==1, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==1, cl(v6)


reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==1, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==1, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==1, cl(v6)

**************************************************************************************
*Table B11: Effect of Shared Race and Gender on Likely Engagement Battery by Partisanship 
*among Men
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==0, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==0, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if democrat==1 & women==0, cl(v6)


reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==0, cl(v6)

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==0, cl(v6)

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender same_gr if republican==1 & women==0, cl(v6)

**************************************************************************************
*Table B12: Avg. Change in Likely Engagement with Shared Gender X Linked Fate by Gender
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party  same_race ib0.same_gender##c.linked_degree if women==1, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party  same_race ib0.same_gender##c.linked_degree if women==1, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))


reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party  same_race ib0.same_gender##c.linked_degree if women==0, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party  same_race ib0.same_gender##c.linked_degree if women==0, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

**************************************************************************************
*Table B13: Avg. Change in Likely Engagement with Shared Gender X Linked Fate by 
*Partisanship among Women
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if democrat==1 & women==1, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if democrat==1 & women==1, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if democrat==1 & women==1, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))


reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if republican==1 & women==1, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if republican==1 & women==1, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if republican==1 & women==1, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

**************************************************************************************
*Table B14: Avg. Change in Likely Engagement with Shared Gender X Linked Fate by 
*Partisanship among Men
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if democrat==1 & women==0, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if democrat==1 & women==0, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if democrat==1 & women==0, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))


reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if republican==1 & women==0, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if republican==1 & women==0, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race ib0.same_gender##c.linked_degree if republican==1 & women==0, cl(v6)
margins, dydx(same_gender) at(linked_degree=(1 2 3))

**************************************************************************************
*Table B15: Avg. Change in Likely Engagement with Shared Race and Gender X Linked Fate 
*by Gender
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))


reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

**************************************************************************************
*Table B16: Avg. Change in Likely Engagement with Shared Race and Gender X Linked Fate 
*by Partisanship among Women
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if democrat==1 & women==1, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if democrat==1 & women==1, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if democrat==1 & women==1, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))


reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if republican==1 & women==1, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if republican==1 & women==1, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if republican==1 & women==1, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

**************************************************************************************
*Table B17: Avg. Change in Likely Engagement with Shared Race and Gender X Linked Fate 
*by Partisanship among Men
**************************************************************************************

reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if democrat==1 & women==0, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if democrat==1 & women==0, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if democrat==1 & women==0, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))


reg voted b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if republican==1 & women==0, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if republican==1 & women==0, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party i.shared_race i.shared_gender ib0.same_gr##c.linked_degree if republican==1 & women==0, cl(v6)
margins, dydx(same_gr) at(linked_degree=(1 2 3))


**************************************************************************************
*Table C5: Effect of Descriptive Representative with Shared Gender, Study 2
**************************************************************************************

gen pval_g=.

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender, cl(v6)
test same_gender
replace pval_g=r(p) in 1

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1, cl(v6)
test same_gender
replace pval_g=r(p) in 2

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1 & democrat==1, cl(v6)
test same_gender
replace pval_g=r(p) in 3

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1 & republican==1, cl(v6)
test same_gender
replace pval_g=r(p) in 4

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==0, cl(v6)
test same_gender
replace pval_g=r(p) in 5

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==0 & democrat==1, cl(v6)
test same_gender
replace pval_g=r(p) in 6

reg voted b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==0 & republican==1, cl(v6)
test same_gender
replace pval_g=r(p) in 7

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender, cl(v6)
test same_gender
replace pval_g=r(p) in 8

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1, cl(v6)
test same_gender
replace pval_g=r(p) in 9

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1 & democrat==1, cl(v6)
test same_gender
replace pval_g=r(p) in 10

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1 & republican==1, cl(v6)
test same_gender
replace pval_g=r(p) in 11

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==0, cl(v6)
test same_gender
replace pval_g=r(p) in 12

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==0 & democrat==1, cl(v6)
test same_gender
replace pval_g=r(p) in 13

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==0 & republican==1, cl(v6)
test same_gender
replace pval_g=r(p) in 14

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race same_gender, cl(v6)
test same_gender
replace pval_g=r(p) in 15

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1, cl(v6)
test same_gender
replace pval_g=r(p) in 16

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1 & democrat==1, cl(v6)
test same_gender
replace pval_g=r(p) in 17

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==1 & republican==1, cl(v6)
test same_gender
replace pval_g=r(p) in 18

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==0, cl(v6)
test same_gender
replace pval_g=r(p) in 19

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==0 & democrat==1, cl(v6)
test same_gender
replace pval_g=r(p) in 20

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party same_race same_gender if women==0 & republican==1, cl(v6)
test same_gender
replace pval_g=r(p) in 21

qqvalue pval_g, method(simes) qvalue(qval_g)
list pval_g qval_g in 1/21

**************************************************************************************
*Table C6: Effect of Descriptive Representative with Shared Gender and Race, Study 2
**************************************************************************************

gen pval_gr=.

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 1

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 2

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==1 & democrat==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 3

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==1 & republican==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 4

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==0, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 5

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==0 & democrat==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 6

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==0 & republican==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 7

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 8

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 9

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==1 & democrat==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 10

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==1 & republican==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 11

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==0, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 12

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==0 & democrat==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 13

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==0 & republican==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 14

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 15

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 16

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==1 & democrat==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 17

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==1 & republican==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 18

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==0, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 19

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==0 & democrat==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 20

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender same_gr if women==0 & republican==1, cl(v6) 
test same_gr 
replace pval_gr=r(p) in 21

qqvalue pval_gr, method(simes) qvalue(qval_gr)
list pval_gr qval_gr in 1/21

**************************************************************************************
*Table C7: Moderation of Gender-Linked Fate with Shared Gender, Study 2 
**************************************************************************************


gen pval_mg=.

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 1

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 2

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 3

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 4

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 5

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 6

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 7

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 8

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 9

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 10

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 11

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 12

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 13

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 14

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 15

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 16

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 17

reg voted b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 18

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 19

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6)
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 20

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 21
 
reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 22

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 23

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 24

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 25

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 26

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 27

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 28

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 29

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 30

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 31

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 32

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 33

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 34

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 35

reg dv2 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 36

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 37

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6)
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 38

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 39
 
reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 40

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 41

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 42

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 43

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 44

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 45

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 46

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 47

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 48

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 49

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 50

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 51

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 1*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 52

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 2*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 53

reg dv3 b3.policypriority i.parentalstatus b2.ideology i.same_party same_race ib0.same_gender##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gender] + 3*_b[1.same_gender#c.linked_degree]
replace pval_mg=r(p) in 54

qqvalue pval_mg, method(simes) qvalue(qval_mg)
list pval_mg qval_mg in 1/54


**************************************************************************************
*Table C8: Moderation of Gender-Linked Fate with Shared Gender and Race, Study 2
**************************************************************************************

gen pval_m=.

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 1

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 2

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 3

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 4

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 5

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 6

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 7

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 8

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 9

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 10

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 11

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 12

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 13

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 14

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 15

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 16

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 17

reg voted b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 18

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 19

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6)
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 20

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 21
 
reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 22

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 23

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 24

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 25

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 26

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 27

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 28

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 29

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 30

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 31

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 32

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 33

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 34

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 35

reg dv2 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 36

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 37

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6)
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 38

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 39
 
reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 40

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 41

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 42

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 43

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 44

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==1 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 45

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 46

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 47

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 48

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 49

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 50

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & democrat==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 51

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 1*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 52

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 2*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 53

reg dv3 b3.policypriority i.parentalstatus b2.ideology same_party shared_race shared_gender ib0.same_gr##c.linked_degree if women==0 & republican==1, cl(v6) 
lincom _b[1.same_gr] + 3*_b[1.same_gr#c.linked_degree]
replace pval_m=r(p) in 54

qqvalue pval_m, method(simes) qvalue(qval_m)
list pval_m qval_m in 1/54


